const mongoose = require("mongoose");

//创建集合类
const AdminSchema = mongoose.Schema({
  adminName: {
    type: String,
    unique: true,
    required: true,
  },
  passWord: {
    type: String,
    required: true,
  },
  //注册时间
  regTime: {
    type: String,
    required: true,
  },
  loginTime: {
    type: String,
    required: true,
    default: "----",
  },
  status: {
    type: Number,
    require: true,
    default: 0,
  },
});

const AdminModule = mongoose.model("adminList", AdminSchema);

//暴露集合
module.exports = AdminModule;
